package org.dromara.customer.domain.vo;

import org.dromara.common.translation.annotation.Translation;
import org.dromara.common.translation.constant.TransConstant;
import org.dromara.customer.domain.TaOrderDetail;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;



/**
 * 订单明细视图对象 ta_order_detail
 *
 * @author xiyin321
 * @date 2024-07-09
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = TaOrderDetail.class)
public class TaOrderDetailVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ExcelProperty(value = "主键")
    private Long id;

    /**
     * 订单ID
     */
    @ExcelProperty(value = "订单ID")
    private Long ordersId;

    /**
     * 店铺id
     */
    private Long storeId;

    /**
     * 店铺名称
     */
    private String storeName;

    /**
     * 图片
     */
    @ExcelProperty(value = "图片")
    private Long image;

    @Translation(type = TransConstant.OSS_ID_TO_URL)
    private Long imageUrl;
    /**
     * 商品id/套餐id
     */
    @ExcelProperty(value = "商品id/套餐id")
    private Long goodsId;

    /**
     * 商品名称/套餐名称
     */
    @ExcelProperty(value = "商品名称/套餐名称")
    private String goodsName;

    /**
     * 已选列表
     */
    @ExcelProperty(value = "已选列表")
    private String selected;

    /**
     * 数量
     */
    @ExcelProperty(value = "数量")
    private int number;

    /**
     * 金额
     */
    @ExcelProperty(value = "金额")
    private String amount;


    public void setImage(Long image) {
        this.image = image;
        this.imageUrl = image;
    }
}
